/**
 * Created by ZT on 2018/10/9 0009.
 */

/*获取相册类型*/
var sqls = require('../sqlMap');  //对应的mysql语句
var query =require('../db');
function execPhoto(app) {
    console.log(333);
    app.use('/getPhoto',function (req,res) {
        var params = req.query;
        var sql=sqls.findData('zt_photoSort');
        var sqlParamsEntity = [];
        sqlParamsEntity.push(sql);
        query.execTrans(sqlParamsEntity,function (err,result) {
            if(err){
                console.error("事务执行失败");
            }else {
                console.log(result);
            }

        });
    });
}
module.exports=execPhoto;